home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 November / Macworld (1999-11).dmg / Updaters / WhiteCap 3.0.4 / WhiteCap Source.sit / WhiteCap Source / Common / General Tools / Headers / Printable.h < prev    next >
MacBinary  |  1999-07-19  |  2.5 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Mon Jul 19 10:47:33 1999, modified Mon Jul 19 10:47:33 1999, creator 'CWIE', type ASCII, 1841 bytes "Printable.h" , at 0x7b1 410 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 50 72 69 6e 74 61 | 62 6c 65 2e 68 00 00 00 |..Printa|ble.h...|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 07 31 00 | 00 01 9a b3 b8 eb 05 b3 |......1.|........|
|00000060| b8 eb 05 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 03 dc 00 00 |........|........|
|00000080| 23 70 72 61 67 6d 61 20 | 6f 6e 63 65 0d 0d 23 69 |#pragma |once..#i|
|00000090| 66 6e 64 65 66 20 5f 50 | 72 69 6e 74 61 62 6c 65 |fndef _P|rintable|
|000000a0| 5f 0d 23 64 65 66 69 6e | 65 20 5f 50 72 69 6e 74 |_.#defin|e _Print|
|000000b0| 61 62 6c 65 5f 0d 0d 0d | 63 6c 61 73 73 20 5a 61 |able_...|class Za|
|000000c0| 66 50 72 69 6e 74 65 72 | 3b 0d 0d 0d 63 6c 61 73 |fPrinter|;...clas|
|000000d0| 73 20 50 72 69 6e 74 61 | 62 6c 65 20 7b 0d 0d 0d |s Printa|ble {...|
|000000e0| 09 70 75 62 6c 69 63 3a | 0d 09 09 2f 2f 20 20 69 |.public:|...// i|
|000000f0| 6e 4f 70 74 69 6f 6e 20 | 3d 3d 20 30 3a 20 09 53 |nOption |== 0: .S|
|00000100| 74 64 20 70 72 69 6e 74 | 09 28 70 72 69 6e 74 20 |td print|.(print |
|00000110| 73 65 74 75 70 20 64 69 | 61 6c 6f 67 29 0d 09 09 |setup di|alog)...|
|00000120| 2f 2f 09 69 6e 4f 70 74 | 69 6f 6e 20 3d 3d 20 31 |//.inOpt|ion == 1|
|00000130| 3a 09 44 65 66 20 50 72 | 69 6e 74 09 28 75 73 65 |:.Def Pr|int.(use|
|00000140| 73 20 6d 6f 73 74 20 72 | 65 63 65 6e 74 20 72 65 |s most r|ecent re|
|00000150| 63 6f 72 64 20 66 72 6f | 6d 20 4a 6f 62 53 65 74 |cord fro|m JobSet|
|00000160| 75 70 28 29 20 29 0d 09 | 09 2f 2f 09 69 6e 4f 70 |up() )..|.//.inOp|
|00000170| 74 69 6f 6e 20 3d 3d 20 | 32 3a 09 50 72 69 6e 74 |tion == |2:.Print|
|00000180| 20 4f 6e 65 20 09 28 6e | 6f 20 70 72 69 6e 74 20 | One .(n|o print |
|00000190| 73 65 74 75 70 20 61 6e | 64 20 6a 75 73 74 20 70 |setup an|d just p|
|000001a0| 72 69 6e 74 20 6f 6e 65 | 29 0d 09 09 76 69 72 74 |rint one|)...virt|
|000001b0| 75 61 6c 20 62 6f 6f 6c | 09 09 09 09 09 50 72 69 |ual bool|.....Pri|
|000001c0| 6e 74 28 20 63 68 61 72 | 2a 20 69 6e 4a 6f 62 4e |nt( char|* inJobN|
|000001d0| 61 6d 65 2c 20 69 6e 74 | 20 69 6e 4f 70 74 69 6f |ame, int| inOptio|
|000001e0| 6e 20 29 3b 0d 09 09 0d | 09 09 2f 2f 09 50 6f 73 |n );....|..//.Pos|
|000001f0| 74 3a 09 52 65 74 75 72 | 6e 73 20 74 68 65 20 68 |t:.Retur|ns the h|
|00000200| 44 43 20 28 57 69 6e 33 | 32 29 20 6f 66 20 74 68 |DC (Win3|2) of th|
|00000210| 65 20 70 72 69 6e 74 65 | 72 2e 0d 09 09 73 74 61 |e printe|r....sta|
|00000220| 74 69 63 20 76 6f 69 64 | 2a 09 09 09 09 09 47 65 |tic void|*.....Ge|
|00000230| 74 50 72 69 6e 74 44 65 | 76 69 63 65 28 29 3b 0d |tPrintDe|vice();.|
|00000240| 09 09 0d 09 09 2f 2f 09 | 50 6f 73 74 3a 09 52 65 |.....//.|Post:.Re|
|00000250| 74 75 72 6e 73 20 74 68 | 65 20 6c 65 6e 67 74 68 |turns th|e length|
|00000260| 20 69 6e 20 70 61 67 65 | 73 20 6e 65 65 64 65 64 | in page|s needed|
|00000270| 20 74 6f 20 70 72 69 6e | 74 2e 0d 09 09 76 69 72 | to prin|t....vir|
|00000280| 74 75 61 6c 20 6c 6f 6e | 67 09 09 09 09 09 47 65 |tual lon|g.....Ge|
|00000290| 74 4e 75 6d 50 61 67 65 | 73 28 29 20 3d 20 30 3b |tNumPage|s() = 0;|
|000002a0| 0d 09 09 0d 09 09 2f 2f | 09 50 6f 73 74 3a 09 54 |......//|.Post:.T|
|000002b0| 68 69 73 20 6d 75 73 74 | 20 62 65 20 63 61 6c 6c |his must| be call|
|000002c0| 65 64 20 61 74 20 74 68 | 65 20 65 6e 64 2f 65 78 |ed at th|e end/ex|
|000002d0| 69 74 20 6f 66 20 74 68 | 65 20 70 72 6f 67 72 61 |it of th|e progra|
|000002e0| 6d 2e 0d 09 09 73 74 61 | 74 69 63 20 76 6f 69 64 |m....sta|tic void|
|000002f0| 09 09 09 09 09 09 53 68 | 75 74 64 6f 77 6e 28 29 |......Sh|utdown()|
|00000300| 3b 0d 09 09 0d 09 09 2f | 2f 09 55 74 69 6c 20 74 |;....../|/.Util t|
|00000310| 6f 20 62 72 69 6e 67 20 | 75 70 20 74 68 65 20 70 |o bring |up the p|
|00000320| 61 67 65 20 73 65 74 75 | 70 20 64 69 61 6c 6f 67 |age setu|p dialog|
|00000330| 20 62 6f 78 2e 0d 09 09 | 73 74 61 74 69 63 20 62 | box....|static b|
|00000340| 6f 6f 6c 09 09 09 09 09 | 09 50 61 67 65 53 65 74 |ool.....|.PageSet|
|00000350| 75 70 28 29 3b 0d 09 09 | 0d 09 09 2f 2f 09 50 6f |up();...|...//.Po|
|00000360| 73 74 3a 09 52 65 74 75 | 72 6e 73 20 74 68 65 20 |st:.Retu|rns the |
|00000370| 64 69 6d 65 6e 74 69 6f | 6e 73 2c 20 69 6e 20 70 |dimentio|ns, in p|
|00000380| 6f 69 6e 74 73 2c 20 6f | 66 20 74 68 65 20 63 75 |oints, o|f the cu|
|00000390| 72 72 65 6e 74 20 70 61 | 70 65 72 20 73 69 7a 65 |rrent pa|per size|
|000003a0| 0d 09 09 73 74 61 74 69 | 63 20 76 6f 69 64 09 09 |...stati|c void..|
|000003b0| 09 09 09 09 47 65 74 50 | 61 67 65 50 6f 69 6e 74 |....GetP|agePoint|
|000003c0| 53 69 7a 65 28 20 6c 6f | 6e 67 26 20 6f 75 74 57 |Size( lo|ng& outW|
|000003d0| 69 64 74 68 2c 20 6c 6f | 6e 67 26 20 6f 75 74 48 |idth, lo|ng& outH|
|000003e0| 65 69 67 68 74 20 29 3b | 0d 09 09 0d 09 09 2f 2f |eight );|......//|
|000003f0| 09 50 6f 73 74 3a 09 42 | 72 69 6e 67 73 20 75 70 |.Post:.B|rings up|
|00000400| 20 74 68 65 20 70 72 69 | 6e 74 20 6a 6f 62 20 73 | the pri|nt job s|
|00000410| 65 74 75 70 20 64 69 61 | 6c 6f 67 20 61 6e 64 20 |etup dia|log and |
|00000420| 75 73 65 73 20 74 68 61 | 74 20 69 66 66 20 69 6e |uses tha|t iff in|
|00000430| 4f 70 74 69 6f 6e 20 3d | 3d 20 31 20 69 6e 20 50 |Option =|= 1 in P|
|00000440| 72 69 6e 74 28 29 0d 09 | 09 2f 2f 09 4e 6f 74 65 |rint()..|.//.Note|
|00000450| 3a 09 52 65 74 75 72 6e | 73 20 3c 74 72 75 65 3e |:.Return|s <true>|
|00000460| 20 69 66 20 75 73 65 72 | 20 64 6f 65 73 6e 27 74 | if user| doesn't|
|00000470| 20 63 61 6e 63 65 6c 20 | 74 68 65 20 64 69 61 6c | cancel |the dial|
|00000480| 6f 67 20 62 6f 78 2e 0d | 09 09 73 74 61 74 69 63 |og box..|..static|
|00000490| 20 62 6f 6f 6c 09 09 09 | 09 09 09 4a 6f 62 53 65 | bool...|...JobSe|
|000004a0| 74 75 70 28 29 3b 0d 0d | 09 09 2f 2f 09 50 6f 73 |tup();..|..//.Pos|
|000004b0| 74 3a 09 54 68 69 73 20 | 64 72 61 77 73 20 69 74 |t:.This |draws it|
|000004c0| 73 65 6c 66 20 74 6f 20 | 74 68 65 20 63 75 72 72 |self to |the curr|
|000004d0| 65 6e 74 20 64 65 76 69 | 63 65 0d 09 09 76 69 72 |ent devi|ce...vir|
|000004e0| 74 75 61 6c 20 76 6f 69 | 64 09 09 09 09 09 44 72 |tual voi|d.....Dr|
|000004f0| 61 77 50 61 67 65 28 20 | 6c 6f 6e 67 20 69 6e 50 |awPage( |long inP|
|00000500| 61 67 65 4e 75 6d 2c 20 | 6c 6f 6e 67 20 69 6e 58 |ageNum, |long inX|
|00000510| 2c 20 6c 6f 6e 67 20 69 | 6e 59 20 29 20 3d 20 30 |, long i|nY ) = 0|
|00000520| 3b 0d 0d 09 09 2f 2f 09 | 50 6f 73 74 3a 09 52 6f |;....//.|Post:.Ro|
|00000530| 75 74 65 73 20 44 72 61 | 77 50 61 67 65 20 6f 75 |utes Dra|wPage ou|
|00000540| 74 70 75 74 20 74 6f 20 | 3c 69 6e 44 65 76 69 63 |tput to |<inDevic|
|00000550| 65 3e 0d 09 09 2f 2f 09 | 4e 6f 74 65 3a 09 49 66 |e>...//.|Note:.If|
|00000560| 20 6f 6e 20 77 69 6e 33 | 32 20 3c 69 6e 44 65 76 | on win3|2 <inDev|
|00000570| 69 63 65 3e 20 69 73 20 | 61 20 68 44 43 2c 20 61 |ice> is |a hDC, a|
|00000580| 6e 64 20 6f 6e 20 4d 61 | 63 4f 53 20 69 74 27 73 |nd on Ma|cOS it's|
|00000590| 20 61 20 47 72 61 66 50 | 6f 72 74 50 74 72 2e 20 | a GrafP|ortPtr. |
|000005a0| 0d 09 09 76 69 72 74 75 | 61 6c 20 76 6f 69 64 09 |...virtu|al void.|
|000005b0| 09 09 09 09 53 65 74 50 | 72 69 6e 74 44 65 76 69 |....SetP|rintDevi|
|000005c0| 63 65 28 20 76 6f 69 64 | 2a 20 69 6e 44 65 76 69 |ce( void|* inDevi|
|000005d0| 63 65 20 29 3b 09 0d 09 | 09 0d 09 09 2f 2f 09 50 |ce );...|....//.P|
|000005e0| 6f 73 74 3a 09 52 65 6c | 65 61 73 65 73 20 61 6c |ost:.Rel|eases al|
|000005f0| 6c 20 74 69 65 73 20 74 | 6f 20 74 68 65 20 63 75 |l ties t|o the cu|
|00000600| 72 72 65 6e 74 20 70 72 | 69 6e 74 20 64 65 76 69 |rrent pr|int devi|
|00000610| 63 65 0d 09 09 76 69 72 | 74 75 61 6c 20 76 6f 69 |ce...vir|tual voi|
|00000620| 64 09 09 09 09 09 43 6c | 6f 73 65 4f 75 74 70 75 |d.....Cl|oseOutpu|
|00000630| 74 50 6f 72 74 28 29 3b | 0d 09 09 0d 09 09 73 74 |tPort();|......st|
|00000640| 61 74 69 63 20 76 6f 69 | 64 09 09 09 09 09 09 49 |atic voi|d......I|
|00000650| 6e 76 61 6c 69 64 65 50 | 52 65 63 28 29 20 20 7b |nvalideP|Rec() {|
|00000660| 20 73 4a 6f 62 49 73 53 | 65 74 75 70 20 3d 20 66 | sJobIsS|etup = f|
|00000670| 61 6c 73 65 3b 20 7d 0d | 09 09 0d 09 09 09 09 09 |alse; }.|........|
|00000680| 0d 09 70 72 6f 74 65 63 | 74 65 64 3a 0d 09 09 76 |..protec|ted:...v|
|00000690| 6f 69 64 2a 09 09 09 09 | 09 09 09 6d 43 75 72 50 |oid*....|...mCurP|
|000006a0| 72 69 6e 74 44 65 76 69 | 63 65 3b 0d 09 09 73 74 |rintDevi|ce;...st|
|000006b0| 61 74 69 63 20 63 68 61 | 72 09 09 09 09 09 09 73 |atic cha|r......s|
|000006c0| 4a 6f 62 52 65 63 6f 72 | 64 5b 20 35 30 30 20 5d |JobRecor|d[ 500 ]|
|000006d0| 3b 0d 09 0d 0d 09 70 72 | 69 76 61 74 65 3a 0d 09 |;.....pr|ivate:..|
|000006e0| 09 73 74 61 74 69 63 20 | 5a 61 66 50 72 69 6e 74 |.static |ZafPrint|
|000006f0| 65 72 2a 09 09 09 09 73 | 5a 61 66 50 72 69 6e 74 |er*....s|ZafPrint|
|00000700| 65 72 3b 0d 09 09 73 74 | 61 74 69 63 20 62 6f 6f |er;...st|atic boo|
|00000710| 6c 09 09 09 09 09 09 73 | 4a 6f 62 49 73 53 65 74 |l......s|JobIsSet|
|00000720| 75 70 3b 09 09 09 2f 2f | 20 74 72 75 65 20 69 64 |up;...//| true id|
|00000730| 20 70 72 69 6e 74 20 72 | 65 63 20 69 73 20 76 61 | print r|ec is va|
|00000740| 6c 69 64 0d 0d 09 09 76 | 6f 69 64 09 09 09 09 09 |lid....v|oid.....|
|00000750| 09 09 41 73 73 65 72 74 | 49 6e 69 74 28 29 3b 0d |..Assert|Init();.|
|00000760| 0d 0d 09 09 73 74 61 74 | 69 63 20 76 6f 69 64 20 |....stat|ic void |
|00000770| 09 09 09 09 09 49 6e 69 | 74 4a 6f 62 53 74 72 75 |.....Ini|tJobStru|
|00000780| 63 74 28 20 76 6f 69 64 | 2a 20 69 6e 4a 6f 62 50 |ct( void|* inJobP|
|00000790| 74 72 2c 20 6c 6f 6e 67 | 20 69 6e 4e 75 6d 50 61 |tr, long| inNumPa|
|000007a0| 67 65 73 20 29 3b 0d 7d | 3b 0d 0d 23 65 6e 64 69 |ges );.}|;..#endi|
|000007b0| 66 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |f.......|........|
|000007c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000800| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00000810| 2f 0d 0a 23 64 65 66 69 | 6e 65 20 4c 5a 45 52 52 |/..#defi|ne LZERR|
|00000820| 4f 52 5f 47 4c 4f 42 4c | 4f 43 4b 20 20 20 20 20 |OR_GLOBL|OCK |
|00000830| 0b 50 72 69 6e 74 61 62 | 6c 65 2e 68 45 20 50 72 |.Printab|le.hE Pr|
|00000840| 65 66 73 68 53 59 4d 4d | 70 33 77 6f 72 6c 64 2e |efshSYMM|p3world.|
|00000850| 00 00 54 45 58 54 43 57 | 49 45 01 00 ff ff ff ff |..TEXTCW|IE......|
|00000860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000870| 00 00 b1 0e 19 0d 00 00 | 07 73 00 00 01 9a 61 72 |........|.s....ar|
|00000880| 61 6d 65 74 65 72 20 6f | 75 74 20 6f 66 20 61 63 |ameter o|ut of ac|
|00000890| 63 65 70 74 61 62 6c 65 | 20 72 61 6e 67 65 2a 2f |ceptable| range*/|
|000008a0| 0d 0a 23 64 65 66 69 6e | 65 20 4c 5a 45 52 52 4f |..#defin|e LZERRO|
|000008b0| 52 5f 55 4e 4b 4e 4f 57 | 4e 41 4c 47 20 20 20 20 |R_UNKNOW|NALG |
|000008c0| 28 2d 38 29 20 20 2f 2a | 20 63 6f 6d 70 72 65 73 |(-8) /*| compres|
|000008d0| 73 69 6f 6e 20 61 6c 67 | 6f 72 69 74 68 6d 20 6e |sion alg|orithm n|
|000008e0| 6f 74 20 72 65 63 6f 67 | 6e 69 7a 65 64 20 2a 2f |ot recog|nized */|
|000008f0| 0d 0a 0d 0a 0d 0a 2f 2a | 0d 0a 2a 2a 20 50 72 6f |....../*|..** Pro|
|00000900| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00000910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000920| 00 00 00 00 00 00 00 03 | 00 04 00 7f 00 59 02 4e |........|.....Y.N|
|00000930| 02 b9 00 7f 00 59 02 4e | 02 b9 b3 b8 a4 b5 00 00 |.....Y.N|........|
|00000940| 06 df 00 00 06 df 00 00 | 02 b6 01 00 00 00 00 04 |........|........|
|00000950| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|00000960| 00 00 00 46 05 c4 8a c0 | 17 24 00 00 00 1c 00 46 |...F....|.$.....F|
|00000970| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00000980| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00000990| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|000009a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+